package com.xnet.datahandler.domain;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
* 库位上已存的物资
* @author 目田
* 2016年12月21日
*/
@Entity
public class Wzkw implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	private int xh;
	private String wlbh;
	private String wlmc;
	private String ggxh;
	private String dw;
	private String ckm;
	private String hj;
	private String ch;
	
	public Wzkw() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Wzkw(int xh, String wlbh, String wlmc, String ggxh, String dw, String ckm, String hj, String ch) {
		super();
		this.xh = xh;
		this.wlbh = wlbh;
		this.wlmc = wlmc;
		this.ggxh = ggxh;
		this.dw = dw;
		this.ckm = ckm;
		this.hj = hj;
		this.ch = ch;
	}
	public int getXh() {
		return xh;
	}
	public void setXh(int xh) {
		this.xh = xh;
	}
	public String getWlbh() {
		return wlbh;
	}
	public void setWlbh(String wlbh) {
		this.wlbh = wlbh;
	}
	public String getWlmc() {
		return wlmc;
	}
	public void setWlmc(String wlmc) {
		this.wlmc = wlmc;
	}
	public String getGgxh() {
		return ggxh;
	}
	public void setGgxh(String ggxh) {
		this.ggxh = ggxh;
	}
	public String getDw() {
		return dw;
	}
	public void setDw(String dw) {
		this.dw = dw;
	}
	public String getCkm() {
		return ckm;
	}
	public void setCkm(String ckm) {
		this.ckm = ckm;
	}
	public String getHj() {
		return hj;
	}
	public void setHj(String hj) {
		this.hj = hj;
	}
	public String getCh() {
		return ch;
	}
	public void setCh(String ch) {
		this.ch = ch;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((ch == null) ? 0 : ch.hashCode());
		result = prime * result + ((ckm == null) ? 0 : ckm.hashCode());
		result = prime * result + ((dw == null) ? 0 : dw.hashCode());
		result = prime * result + ((ggxh == null) ? 0 : ggxh.hashCode());
		result = prime * result + ((hj == null) ? 0 : hj.hashCode());
		result = prime * result + ((wlbh == null) ? 0 : wlbh.hashCode());
		result = prime * result + ((wlmc == null) ? 0 : wlmc.hashCode());
		result = prime * result + xh;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Wzkw other = (Wzkw) obj;
		if (ch == null) {
			if (other.ch != null)
				return false;
		} else if (!ch.equals(other.ch))
			return false;
		if (ckm == null) {
			if (other.ckm != null)
				return false;
		} else if (!ckm.equals(other.ckm))
			return false;
		if (dw == null) {
			if (other.dw != null)
				return false;
		} else if (!dw.equals(other.dw))
			return false;
		if (ggxh == null) {
			if (other.ggxh != null)
				return false;
		} else if (!ggxh.equals(other.ggxh))
			return false;
		if (hj == null) {
			if (other.hj != null)
				return false;
		} else if (!hj.equals(other.hj))
			return false;
		if (wlbh == null) {
			if (other.wlbh != null)
				return false;
		} else if (!wlbh.equals(other.wlbh))
			return false;
		if (wlmc == null) {
			if (other.wlmc != null)
				return false;
		} else if (!wlmc.equals(other.wlmc))
			return false;
		if (xh != other.xh)
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Wzkw [xh=" + xh + ", wlbh=" + wlbh + ", wlmc=" + wlmc + ", ggxh=" + ggxh + ", dw=" + dw + ", ckm=" + ckm
				+ ", hj=" + hj + ", ch=" + ch + "]";
	}
	
}
